import requests
class ihrmLoginApi:
    @classmethod
    def login_api(cls,mobile,pwd):
        herderJson = {"Content-Type":"application/json"}
        jsonData = {"mobile":mobile,"password":pwd}
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                             headers=herderJson,
                             json=jsonData)
        return resp


if __name__ == '__main__':
    print(ihrmLoginApi.login_api("13800000002","123456").status_code)